package com.genius.adminmanager.menu.entity;


import com.alibaba.fastjson.JSONObject;

public class MenuJson {
	public static String menuId = "menuId";
	public static String icon = "icon";
	public static String name = "name";
	public static String state = "state";
	public static String url = "url";
	public static String canshu = "canshu";
	public static String parentId = "pId";
	public static String place = "place";
	public static String type = "type";
	public static String hasField = "hasField";
	public static String field = "field";
	public static String createAuthor = "createAuthor";
	public static String createTime = "createTime";
	public static String status = "status";
	
	public enum menuType{
		menu,
		oneToMore,
		catalog ,//目录
		button,
		link,
		newWindow,
		window
	}
	public static JSONObject resource = new JSONObject();
	
	static{
		
		JSONObject json1 = new JSONObject();
		json1.put("menu", "菜单");
		json1.put("oneToMore", "菜单");
		json1.put("catalog", "目录");
		json1.put("button", "按钮");
		json1.put("window", "弹窗");
		json1.put("newWindow", "新窗");
		json1.put("link", "链接");
		resource.put(type, json1);
		
		JSONObject json2 = new JSONObject();
		json2.put("1", "启用");
		json2.put("0", "禁用");
		resource.put(status, json2);
		
		JSONObject json3 = new JSONObject();
		json3.put("1", "有");
		json3.put("0", "无");
		resource.put(hasField, json3);
	}
}
